home *** CD-ROM | disk | FTP | other *** search
- #
- # (C) Tenable Network Security
- #
- #
- # The text of this plugin is (C) Red Hat Inc.
-
- if ( ! defined_func("bn_random") ) exit(0);
- if(description)
- {
- script_id(12403);
- script_version ("$Revision: 1.4 $");
- script_cve_id("CAN-2003-0282");
-
- name["english"] = "RHSA-2003-200: unzip";
-
- script_name(english:name["english"]);
-
- desc["english"] = '
-
- Updated unzip packages resolving a vulnerability allowing arbitrary files
- to be overwritten are now available.
-
- [Updated 15 August 2003]
- Ben Laurie found that the original patch to fix this issue missed a case
- where the path component included a quoted slash. These updated packages
- contain a new patch that corrects this issue.
-
- The unzip utility is used for manipulating archives, which are multiple
- files stored inside of a single file.
-
- A vulnerabilitiy in unzip version 5.50 and earlier allows attackers to
- overwrite arbitrary files during archive extraction by placing invalid
- (non-printable) characters between two "." characters. These non-printable
- characters are filtered, resulting in a ".." sequence. The Common
- Vulnerabilities and Exposures project (cve.mitre.org) has assigned the name
- CAN-2003-0282 to this issue.
-
- This erratum includes a patch ensuring that non-printable characters do not
- make it possible for a malicious .zip file to write to parent directories
- unless the "-:" command line parameter is specified.
-
- Users of unzip are advised to upgrade to these updated packages, which are
- not vulnerable to this issue.
-
-
-
-
- Solution : http://rhn.redhat.com/errata/RHSA-2003-200.html
- Risk factor : High';
-
- script_description(english:desc["english"]);
-
- summary["english"] = "Check for the version of the unzip packages";
- script_summary(english:summary["english"]);
-
- script_category(ACT_GATHER_INFO);
-
- script_copyright(english:"This script is Copyright (C) 2004 Tenable Network Security");
- family["english"] = "Red Hat Local Security Checks";
- script_family(english:family["english"]);
-
- script_dependencies("ssh_get_info.nasl");
-
- script_require_keys("Host/RedHat/rpm-list");
- exit(0);
- }
-
- include("rpm.inc");
- if ( rpm_check( reference:"unzip-5.50-30", release:"RHEL2.1") )
- {
- security_hole(0);
- exit(0);
- }
-
- if ( rpm_exists(rpm:"unzip-", release:"RHEL2.1") )
- {
- set_kb_item(name:"CAN-2003-0282", value:TRUE);
- }
-
- set_kb_item(name:"RHSA-2003-200", value:TRUE);
-